package com.bestdata.em.drs.receviedatafromDRS.mapper;


import com.bestdata.em.drs.receviedatafromDRS.model.InsertData;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.DependsOn;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chizy
 * @since 2019-09-12
 */
@Mapper
public interface DataProcessMapper {

    @Select("select top 10 DataID from YB_DeviceDataHist")
    List<String> get();

    @Insert("insert into WATL_DeviceDataHist (DeviceID,V1,DacTime) values (#{data.id},#{data.x},#{data.tm})")
    boolean insertWATLData(@Param("data")InsertData data);

    @Insert("insert into YB_DeviceDataHist (DeviceInnerID,V1,DacTime) values (#{data.id},#{data.x},#{data.tm})")
    boolean insertYBData(@Param("data")InsertData data);

    @Insert("insert into INMV_DeviceDataHist (DeviceInnerID,V1,V2,DacTime) values (#{data.id},#{data.X},#{data.Y},#{data.tm})")
    boolean insertXYData(@Param("data")InsertData data);


}
